<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags/components" %>
<%@ attribute name="album" required="true" type="beans.Album" rtexprvalue="true" %>

<!-- Author: Minh-Tuan Ta -->

<div class="fullAlbum">
	<div class="albumPicture">
		<a href="Photos?albumID=${album.contentID }"><img src="${album.photoPath }" /></a>
	</div>
	<div class="albumDescription">
		<h3><a href="Photos?albumID=${album.contentID }">${album.contentTitle }</a></h3>
		<p>${album.content }</p>
		<c:if test="${album.userID == User.userID }">
			<div class="albumNav">
				<a href="UpdateAlbum?albumID=${album.contentID }"><span class="linkButton">Update Album</span></a><br />
				<form action="DeleteAlbum" method="post">
					<input type="hidden" name="albumID" value="${album.contentID }" />
					<input type="submit" name="submit" value="Delete Album" />
				</form>
			</div>
		</c:if>
		<div class="albumDate">${album.formattedDateCreatedString }</div>
	</div>
</div>